package com.cskaoyan.controller.lz_controller;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.lzpackage.lz_collect.CollectData;
import com.cskaoyan.bean.params.BaseParam;
import com.cskaoyan.lz_service.CollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin/collect")
public class AdminCollectController {

    @Autowired
    CollectService collectService;
    @RequestMapping("list")
    public BaseRespVo list(String username, BaseParam param,String userId,String valueId) {
        CollectData collectData = collectService.query(param,username,userId,valueId);
        return BaseRespVo.ok(collectData);
    }
}
